import java.awt.Button;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Label;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class OptionsPanelAWT extends Panel
{
	private static final long serialVersionUID = 1L;
	private Button restart = new Button("RESTART!");
	static Label text = new Label("                                                   ");
	
	/**class constructor**/
	public OptionsPanelAWT()
	{
		this.setBackground(Color.BLACK);
		text.setForeground(Color.WHITE);
		add(restart,FlowLayout.LEFT);
		add(text);
		restart.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				//System.out.println("bla bla");
				GameWindowAWT.getBoard().init();
				text.setText("                                                   ");
			}
		});
	}
}
